package com.dang.service.imp;

import com.dang.dao.imp.DAOFactory;
import com.dang.model.User;
import com.dang.service.UserService;

public class UserServiceImp implements UserService{
	public void save(User user) throws Exception{
		DAOFactory.getUserDAO().save(user);
	}
	public User findByEmail(String email) throws Exception{
		return DAOFactory.getUserDAO().findByEmail(email);
	}
	public void update(User u) throws Exception{
		DAOFactory.getUserDAO().update(u);
	}
	public User findById(int id) throws Exception {
		// TODO Auto-generated method stub
		return DAOFactory.getUserDAO().findById(id);
	}
}
